package com.lt.schoolchat.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @description:
 * @author: ~Teng~
 * @date: 2023/5/10 10:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "video")
public class Video implements Serializable {
    private static final long serialVersionUID = -3136732836884933873L;

    private ObjectId id; //主键id
    private Long userId; // 用户id
    private Long created; // 创建时间

    private String text; // 文字
    private String picUrl; // 视频封面文件，URL
    private String videoUrl; // 视频文件，URL

    private Integer likeCount = 0; // 点赞数
}
